/**
 * 字典请求接口
 */
import projectRequest from "./request";
import {getDictDataByTypeDTO} from "../interface/SysDictDataInterface";

/**
 * 获取字典接口
 * @param type
 */
export function getSysDictData(params:getDictDataByTypeDTO) {
 return projectRequest.request({
   method:"get",
   url:"/sysDictData/page",
   params
 });
}

export function getSysDictById(id:number) {
  return projectRequest.request({
    method:"get",
    url:`/sysDictData/${id}`,
  });
}
